package com.myThreadPool;


/**
 * @Author weijingchen
 * @Date 2025/6/23 20:05
 * @Version 1.0.0
 */
public class MyRunnable implements Runnable{
    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(Thread.currentThread().getName()+"线程启动了");
            try {
                Thread.currentThread().wait(1000L);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
